import { STORAGE_CONFIG } from "@/model";
import { setStorage, getStorage, removeStorage } from "@/utils/storage";

function getUserInfo() {
  return getStorage(STORAGE_CONFIG.USER_INFO);
}

function setUserInfo(userInfo) {
  return setStorage(STORAGE_CONFIG.USER_INFO, userInfo);
}

function removeUserInfo() {
  return removeStorage(STORAGE_CONFIG.USER_INFO);
}

export { getUserInfo, setUserInfo, removeUserInfo };
